//校验可以使用，这里暂时未用到
package com.bjfu.dto;

//import jakarta.validation.constraints.NotNull;
//import jakarta.validation.constraints.Size;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class TeamAdminDTO_NOUSE {

    @NotNull(message = "User ID cannot be null")
    private Integer userId;

    @NotNull(message = "Username cannot be null")
    @Size(min = 3, max = 50, message = "Username length should be between 3 and 50 characters")
    private String username;

    @NotNull(message = "Password cannot be null")
    @Size(min = 6, max = 20, message = "Password length should be between 6 and 20 characters")
    private String password;

    // Getters and Setters

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}

